﻿#pragma once

#include "../MonsterObject.h"
#include "../../MirDatabase/MonsterInfo.h"
#include "../../../Shared/Packet.h"
#include <vector>
#include <any>

using namespace Server::MirDatabase;
using namespace Server::MirEnvir;
namespace S = ServerPackets;

namespace Server::MirObjects::Monsters
{
    class HornedMage : public MonsterObject
    {
    public:
        long long FearTime = 0;

    protected:
        HornedMage(MonsterInfo *info);

        bool InAttackRange() override;

        void ProcessTarget() override;
        void Attack() override;


    public:
        bool TeleportTarget(int attempts, int distance);

    protected:
        void CompleteRangeAttack(std::vector<std::any> &data) override;

        void CompleteAttack(std::vector<std::any> &data) override;


    public:
        Packet *GetInfo() override;
    };
}
